:root {
    --primary-color: #1E88E5; /* 中深蓝 */
    --secondary-color: #388E3C; /* 深绿 - 提升对比度 */
    --text-color: #333333; /* 深灰 */
    --light-gray: #E8F5E9; /* 浅绿背景 - 提升对比度 */
    --medium-gray: #E0E0E0; /* 中灰 */
    --dark-gray: #333333; /* 深灰 */
    /* 统一间距系统 */
    --spacer-1: 8px;
    --spacer-3: 24px;
    --spacer-4: 32px;
    --spacer-6: 48px;
    --primary: #1E88E5; /* L*=62, a*=-12, b*=+52 */
    --primary-hover: #0D47A1; /* L*=38, a*=-15, b*=+60 */
.skeleton {
    height: 200px;
    border-radius: 8px;
}
}

body {
    background-color: transparent;
    color: var(--text-color);
    font-family: 'VTB Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    display: none;
}

#header-container {
    height: auto;
    display: block;
}

header {
    background-color: var(--dark-gray);
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--medium-gray);
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 50;
    height: 80px;
    display: flex;
    align-items: center;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.mobile-nav-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.button {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 8px rgba(30, 136, 229, 0.3);
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.button:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 12px rgba(13, 71, 161, 0.4);
    transform: translateY(-2px);
}

.button:hover::after {
    animation: ripple 0.6s ease-out;
}

.button:active {
    transform: translateY(1px);
}

@keyframes ripple {
    to {
        transform: translate(-50%, -50%) scale(20);
        opacity: 0;
    }
}

input, textarea, select {
    background: var(--light-gray);
    border: 1px solid var(--medium-gray);
    padding: 10px;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

input:focus, textarea:focus, select:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.2);
    outline: none;
}

.logo {
    display: block;
    width: 180px;
    height: auto;
    margin: 0 auto;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacer-4);
    margin-top: var(--spacer-6);
    margin-bottom: var(--spacer-6);
    align-items: stretch;
}

/* 旧版浏览器兼容 */
@supports not (display: grid) {
    .service-cards {
        display: flex;
        flex-wrap: wrap;
        margin-left: -16px;
        margin-right: -16px;
    }
    .service-card {
        flex: 1 1 calc(33.333% - 32px);
        margin-left: 16px;
        margin-right: 16px;
    }
}

.service-card {
    background-color: white;
    border-radius: 8px;
    padding: var(--spacer-3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, box-shadow;
    position: relative;
    cursor: pointer;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
}

.service-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.service-card ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.service-card li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .service-cards {
        grid-template-columns: 1fr;
    }
    .nav-toggle {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    .banner h1 {
        font-size: 2rem;
    }
}

/* Banner区域样式 */
.banner {
    position: relative;
    height: calc(100vh - 64px); /* 减去底部导航栏高度 */
    overflow: hidden;
    margin-bottom: var(--spacer-6);
    display: flex;
    align-items: center;
}

.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-size: 200% 200%;
    animation: gradientMove 15s ease infinite;
    z-index: 1;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@-webkit-keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@-moz-keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.banner .container {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 0 20px;
    z-index: 2;
}

.banner h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.banner p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
}

.urgent-consult-btn {
    background-color: #ff3b30;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
    transition: all 0.3s ease;
}

.urgent-consult-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 59, 48, 0.5);
}

/* Z轴层级修复 */
.floating-btn {
    z-index: 100; /* 提升至导航栏之上 */
}

.modal-overlay {
    z-index: 200; /* 最高层级 */
}

/* 动画减弱适配 */
@media (prefers-reduced-motion: reduce) {
    .animated {
        animation: none !important;
        transition: none !important;
    }
}

/* 视觉引导样式 */
.scroll-indicator {
    outline: none;
}

.scroll-indicator:focus {
    outline: 3px solid var(--primary-color);
    border-radius: 50%;
}

.skip-link:focus {
    top: 0;
    border: 2px solid #FF9800;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    z-index: 1000;
}
    animation: bounce 2s infinite;
    text-align: center;
    margin: var(--spacer-4) auto;
    display: block;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@-webkit-keyframes bounce {
    0%, 20%, 50%, 80%, 100% { -webkit-transform: translateY(0); }
    40% { -webkit-transform: translateY(-10px); }
    60% { -webkit-transform: translateY(-5px); }
}

@-moz-keyframes bounce {
    0%, 20%, 50%, 80%, 100% { -moz-transform: translateY(0); }
    40% { -moz-transform: translateY(-10px); }
    60% { -moz-transform: translateY(-5px); }
}

/* 表单错误状态动画 */
.form-error {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@-webkit-keyframes shake {
    0%, 100% { -webkit-transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { -webkit-transform: translateX(-5px); }
    20%, 40%, 60%, 80% { -webkit-transform: translateX(5px); }
}

@-moz-keyframes shake {
    0%, 100% { -moz-transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { -moz-transform: translateX(-5px); }
    20%, 40%, 60%, 80% { -moz-transform: translateX(5px); }
}

/* 键盘焦点状态强化 */
*:focus-visible {
    outline: 3px solid #1976d2;
    outline-offset: 2px;
    border-radius: 4px;
}

/* 导航下拉菜单修复 */
.nav-dropdown {
    padding-top: 4px;
    box-sizing: border-box;
    margin-top: 0;
}

/* 表单提交按钮加载状态 */
.submit-btn {
    position: relative;
    overflow: hidden;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn.loading {
    cursor: progress;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border-radius: 50%;
    border-top: 3px solid #fff;
    border-right: 3px solid transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@-webkit-keyframes spin {
    to { -webkit-transform: rotate(360deg); }
}

@-moz-keyframes spin {
    to { -moz-transform: rotate(360deg); }
}

/* 导航链接涟漪效果 */
.ripple {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.ripple::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}

.ripple:active::after {
    transform: scale(0, 0);
    opacity: .3;
    transition: 0s;
}

/* 新增缩放动画 */
.scale-in {
    animation: scaleIn 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 语言切换相关样式 */
.loading-indicator, .error-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 15px;
    border-radius: 4px;
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.loading-indicator {
    background-color: white;
}

.error-indicator {
    background-color: #f8d7da;
    color: #721c24;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0,0,0,0.1);
    border-top-color: #1E88E5;
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}
#main-footer {
    border-top: 1px solid #eee;
    padding: 2rem 0;
    background: #f9f9f9;
}